<div class="buttons">

    <?php  echo form_open('action/create_reply/'.$this->uri->segment(3)."/".$this->uri->segment(4) );     ?>


    <div class="error"><?php echo validation_errors(); ?></div>
    <table width="100%"  border="0">
        <thead>
            <tr>
                <th colspan="2">Post Reply in topic <?=$this->uri->segment(4)?></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Post Content&nbsp;</td>
                <td>
                    <textarea name="post_content" cols="60" rows="5" id="textarea" ></textarea>
                    <a href="javascript:toggleEditor('post_content');">Add/Remove editor</a>
                </td>
            </tr>



            <tr>
                <td>&nbsp;</td>
                <td> <button type="submit" name="save"  id="save" class="positive" >Save</button>
                    <button type="reset" name="reset" id="reset" class="negative" >Reset</button></td>
                </td>
            </tr>
        </tbody>
        <tfoot><tr><td colspan="2">&nbsp;</td></tr></tfoot>
    </table>
</form>

<?=form_close()?></div>
<script language="javascript" type="text/javascript" src="<?=base_url()?>required/tiny/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
    tinyMCE.init({
        // General options
        mode : "exact",
        elements : "post_content",
        theme : "advanced",
        plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",


        // Theme options
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,image,|,forecolor,backcolor,|,insertlayer,moveforward,movebackward,absolute,|,advhr,|,sub,sup",
        theme_advanced_buttons3 : "tablecontrols,|,charmap,iespell,media,|,print,|,fullscreenstyleprops,|,abbr,attribs,cleanup,mybutton,code,togglebutton",
        theme_advanced_buttons4 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,

        // Example content CSS (should be your site CSS)
        content_css : "css/content.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "lists/template_list.js",
        external_link_list_url : "lists/link_list.js",
        external_image_list_url : "lists/image_list.js",
        media_external_list_url : "lists/media_list.js"


    });


    function toggleEditor(id) {

     //   if(tinyMCE.get(id).hide())
   //         tinyMCE.get(id).show();
 //       else
        tinyMCE.get(id).hide();

}





</script>